package com.jing21.learn.codegenerator;

import java.util.HashMap;
import java.util.Map;

/**
 * <code>GeneratorMain</code>
 *
 */
public class GeneratorMain {

    public static void main(String[] args) throws Exception {
        Generator g = new Generator();
        g.clean();//
        Map<String ,String> map = new HashMap<>();
        //表名，表注释LearnUser.java
   /*     map.put("pay_account", "资金账户表");
        map.put("pay_account_history", "资金账户流水表");
        map.put("pay_trade_payment_order", "支付订单表");
        map.put("pay_trade_payment_record", "支付记录表");
        map.put("pay_sett_record", "结算记录");*/

/*        map.put("invite_info", "邀请详情b");
        map.put("invite_record", "邀请记录表");*/

       /* map.put("pay_sett_record", "提现记录");*/
     /*   map.put("line_use_note", "练车笔记");*/
        map.put("learn_user", "用户信息");

        //清空文件夹
        map.forEach((key,value)->{
            try {
                g.generateTable(key, value);
            } catch (Exception e) {
                e.printStackTrace();
                System.out.println(key + "出错");
            }
        });
        System.out.println("--完成--");

    }

}
